package com.yc.cloud.admin.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "AlarmRecordListParam", description = "告警记录列表查询参数")
public class AlarmRecordListParam {

    @ApiModelProperty(value = "算法ID，用于精确筛选")
    private Long algorithmId;

    @ApiModelProperty(value = "处理状态: 0-待处理, 1-处理中, 2-已关闭, 3-误报")
    private Byte status;

    @ApiModelProperty(value = "摄像头ID（设备ID），用于精确筛选")
    private Long cameraId;

    @ApiModelProperty(value = "告警开始时间（格式: yyyy-MM-dd HH:mm:ss）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "告警结束时间（格式: yyyy-MM-dd HH:mm:ss）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
}


